package com.wfcm.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;



/**
 * 用户花费赠送铜钱记录
 * 
 * @author xlf
 * @email xlfbe696@gmail.com
 * @date 2018-03-29 13:17:10
 */
public class WfMemberGiveCoinLogEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//铜钱记录表id
	private Integer id;
	//用户编号
	private Integer userid;
	//花费铜钱
	private BigDecimal coinvalue;
	//订单编号
	private String ordercode;
	//状态（1审核中2成功）
	private Integer status;
	//创建时间
	private Date createtime;
	//备注
	private String remarkinfo;
	//类型（1、赚 2、花）
	private Integer type;
    //渠道
	private Integer source;
	//
	private Integer touserid;
	
	private WfMemberEntity memberEntity;

	public WfMemberGiveCoinLogEntity() {
		super();
	}

	public WfMemberGiveCoinLogEntity(Integer userId, Integer price, String orderNum) {
		this.userid = userId;
		this.coinvalue = new BigDecimal(price);
		this.ordercode = "ios-" + orderNum;
		this.createtime = new Date();
		this.status = 2;
		this.type = 1;
		this.source = 8;
	}

	public void setAll(Integer userid, BigDecimal coinvalue, String ordercode, Integer status, Date createtime, Integer type, Integer source, Integer touserid) {
		this.userid = userid;
		this.coinvalue = coinvalue;
		this.ordercode = ordercode;
		this.status = status;
		this.createtime = createtime;
		this.type = type;
		this.source = source;
		this.touserid = touserid;
	}

	public Integer getTouserid() {
		return touserid;
	}
	public void setTouserid(Integer touserid) {
		this.touserid = touserid;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getSource() {
		return source;
	}
	public void setSource(Integer source) {
		this.source = source;
	}
	/**
	 * 设置：铜钱记录表id
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：铜钱记录表id
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：用户编号
	 */
	public void setUserid(Integer userid) {
		this.userid = userid;
	}
	/**
	 * 获取：用户编号
	 */
	public Integer getUserid() {
		return userid;
	}
	/**
	 * 设置：花费铜钱
	 */
	public void setCoinvalue(BigDecimal coinvalue) {
		this.coinvalue = coinvalue;
	}
	/**
	 * 获取：花费铜钱
	 */
	public BigDecimal getCoinvalue() {
		return coinvalue;
	}
	/**
	 * 设置：订单编号
	 */
	public void setOrdercode(String ordercode) {
		this.ordercode = ordercode;
	}
	/**
	 * 获取：订单编号
	 */
	public String getOrdercode() {
		return ordercode;
	}
	/**
	 * 设置：状态（1审核中2成功）
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}
	/**
	 * 获取：状态（1审核中2成功）
	 */
	public Integer getStatus() {
		return status;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreatetime() {
		return createtime;
	}
	/**
	 * 设置：备注
	 */
	public void setRemarkinfo(String remarkinfo) {
		this.remarkinfo = remarkinfo;
	}
	/**
	 * 获取：备注
	 */
	public String getRemarkinfo() {
		return remarkinfo;
	}
	public WfMemberEntity getMemberEntity() {
		return memberEntity;
	}
	public void setMemberEntity(WfMemberEntity memberEntity) {
		this.memberEntity = memberEntity;
	}
	
}
